<%@ page language="java" contentType="text/html; charset=UTF-8" 
import="java.util.*,com.profound.blog.bean.*"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
.article{width:100%; margin-top:5px ; border-top:#06C solid 1px; border-right:white solid 3px;border-left:white solid 3px;}
.title{ font-size:14px; font-weight:bold; background:#9CF; border-bottom:#06c dotted 1px;}
.abs{ font-size:12px;}
.abs a{ font-size:12px; color:red; text-decoration:none}
.info{ text-align:right}
</style>

</head>

<body>
<%
 			String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath();//绝对路径，要在下面引用。
%>
    <div style="border:#069 solid 1px; margin:0px 5px 5px 5px; width:98%; height:100%">
       <label style=" display:block; width:100%;  height:30px; line-height:30px; vertical-align:middle; text-align:left; font-size:14px; background:#069; color:white; "><font style="margin-left:10px;">最新文章</font></label>
        <!-- ------------------------------------------------------------------------->

<c:forEach items="${requestScope.list}" var="a">        
        <table class="article">
            <tr>
                 <td class="title">${a.title}
                 </td>
            </tr>
            <tr>
                 <td class="abs">${a.articleContent}
                 <a href="<%=basePath %>/ShowMyArticle/${a.articleId}.do">阅读全文</a>
                 </td>
            </tr>
            <tr>
                 <td class="info">
                    ${a.publishDate}作者：${a.author} 【评论：${a.reviewCount}】【阅读：${a.accessCount}】               
                 </td>
            </tr>
        </table>
</c:forEach>
       <div>
       总文章数${total}，总页数${pageTotal}，
       当前页数${currPage }
       
<c:if test="${currPage>1}">    

       <a href="<%=basePath %>/MyArticleList/${currPage-1 }/8/${sessionScope.userInfo.blog.blogId }.do" style="color:green">上一页</a>
</c:if>
<c:if test="${currPage<pageTotal }">  
       <a href="<%=basePath %>/MyArticleList/${currPage+1 }/8/${sessionScope.userInfo.blog.blogId }.do" style="color:green">下一页</a>
</c:if>
       </div> 
    </div>
</body>
</html>